﻿using System.Windows;
using System.Windows.Controls;
using HeritageAcademy.Models.ViewModels;

namespace HeritageAcademy.Library.Controls
{
    /// <summary>
    /// Test board list box (originated from TableOfContentsView) class.
    /// </summary>
    public partial class TestBoardListBox
    {
        #region Ctor 

        public TestBoardListBox()
        {
            InitializeComponent();
        }

        #endregion

        #region Properties

        public ItemsControl TestItems
        {
            get { return icViewer; }
            set { icViewer = value; }
        }

        #endregion

        #region Event Handler

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            ((TestWizardViewModel) DataContext).SelectedTestTitle = ((Button) sender).Content.ToString();
        }

        #endregion
    }
}